/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
var FindPasswordTwo = function() {
    return {
        init: function() {
            //通过手机号吗发送验证码
            $('#SendVarifyByPhone').click(function() {
                //开始ajax请求
                //success
                ResendVarifyByPhoneTimer = window.setInterval("FindPasswordTwo.ResendVarifyByPhone()", 1000);
            });
        },
        ResendVarifyByPhone: function() {
            $('#SendVarifyByPhone').attr('disabled', 'disabled');
            $('#SendVarifyByPhone').attr('value', '重新发送(' + ResendVarifyByPhoneTime + ')');
            if (ResendVarifyByPhoneTime <= 0) {
                $('#SendVarifyByPhone').removeAttr('disabled');
                $('#SendVarifyByPhone').attr('value', '重新发送');
                window.clearInterval(ResendVarifyByPhoneTimer);
                ResendVarifyByPhoneTime = BackUpRVBPT;
            } else {
                ResendVarifyByPhoneTime--;
            }
        }
    };
}();